import { defineStore } from "pinia";

export  const useLoading = defineStore('loading',{
    state(){
        return {
            loading:0
        }
    },
    actions:{
            add(){
                this.loading ++
            },
            reduce(){
                this.loading--
            }
    },
    getters:{
        status(){
            return this.loading
        }
    },
   
}) 